"""seckill model add version

Revision ID: 59f44615dd17
Revises: db94f8f698b2
Create Date: 2025-08-24 09:42:15.426291

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '59f44615dd17'
down_revision: Union[str, Sequence[str], None] = 'db94f8f698b2'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('seckill', sa.Column('version_id', sa.String(length=100), nullable=False, comment='版本id'))
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('seckill', 'version_id')
    # ### end Alembic commands ###
